﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace UmbracoVideoModule
{
    public partial class VideoUserControl : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        public string VideoURL 
        {
            get
            {
                return Video1.URL;
            }
            set
            {
                Video1.URL = value;
            }
        }

        public int Width
        {
            get
            {
                return (int)Video1.Width.Value;
            }
            set
            {
                Video1.Width = Unit.Pixel(value);
            }
        }

        public int Height
        {
            get
            {
                return (int)Video1.Height.Value;
            }
            set
            {
                Video1.Height = Unit.Pixel(value);
            }
        }

        public string ThumbnailImage
        {
            get
            {
                return Video1.PreviewImageUrl;
            }
            set
            {
                Video1.PreviewImageUrl = value;
            }
        }
    }
}